From 1d09da4ce4d88df091ca5b988a75b8701a3ea989 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Mon, 16 Feb 2026 21:25:36 +0100 Subject: [PATCH] search: Use async API in search result implementation SearchResultsBase.updateSearch is an async function but we do not implement it in the same way in GridSearchResults. While this is not wrong per se, it makes it harder to follow the chain and potentially to handle the errors Part-of: --- js/ui/search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/search.js b/js/ui/search.js index 897bae5b9..32a934f43 100644 --- a/js/ui/search.js +++ b/js/ui/search.js @@ -497,7 +497,7 @@ class GridSearchResults extends SearchResultsBase { super._onDestroy(); } - updateSearch(...args) { + async updateSearch(...args) { if (this._notifyAllocationId) this.disconnect(this._notifyAllocationId); if (this._updateSearchLater) { @@ -519,7 +519,7 @@ class GridSearchResults extends SearchResultsBase { }); }); - super.updateSearch(...args); + await super.updateSearch(...args); } _getMaxDisplayedResults() { -- 2.39.5